package com.atxiaodei.kabudarpc.controller;

import com.atxiaodei.kabudarpc.api.IOrderService;
import com.atxiaodei.kabudarpc.client.KabudaReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName RpcTestController
 * @Deacription TODO
 * @Author 卡布达
 * @Date 2021/10/31 16:59
 * @Version 1.0
 **/
@RestController
public class RpcTestController {

    @KabudaReference
    private IOrderService orderService;

    @GetMapping("/test")
    public String test(){
        return orderService.queryOrderList();
    }
}
